package cn.laixueit;

import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {
        //  a
        /*char c = '含';
        int i = c;
        System.out.println(i);*/
        /*char c2 = 'a';
        int b = c2;
        System.out.println(b);
        char c3 = 'b';
        int c = c3;
        System.out.println(c);
        char c4 = 'c';
        int d = c4;
        System.out.println(d);
        char c5 = 'z';
        int e = c5;
        System.out.println(e);*/
        /* char 可以用int 接受 ，因为 int 最大值约等于21亿，char最大65535  */
        /*int a = 96;
        char aa = (char)a;
        System.out.println(aa);
        for (int i = 1; i <=5; i++) {
            for (int i1 = 0; i1 < i; i1++) {
                System.out.print((char)(a + i));
            }
            System.out.println();
        }*/

        /*for(char c ='a';c<='z';c++){
            System.out.println(c);
        }*/

        /*Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 1000; i++) {
            double random = Math.random();
            int num = (int)((random*26));//
            int n = num + 97; //97
            char c = (char)n;
            System.out.println("系统出现字符:"+c);
            System.out.println("请输入您的字符");
            String next = scanner.next();
            if(next.equals(c+"")){
                System.out.println("输入正确:");
            }else{
                System.out.println("输入错误:");
            }
        }*/


        /*
        0.8761118811599808
        0.8484391967292187
        0.03841517450392151
        * */
//        0.6430665531412854
        /*double d = 0.6430665531412854;
        double v = d * 10;
        System.out.println((int) v);*/


       /* byte b = (byte) 140;
        System.out.println(b);*/

       /*
           128  64  32 16  8 4 2 1
           符号位
           1  0 0   0 1 1 0 0   补码
                                反码
           1   1 1  1 1 0 1 1 0 源码
        */

    }
}
